import { act, renderHook } from "@testing-library/react-hooks";
import useCounter from ".";

describe("test", () => {
  it("add test", () => {
    const { result } = renderHook(() => useCounter(0));

    act(() => {
      result.current[1].inc(1);
    });

    expect(result.current[0]).toEqual(1);
  });
});
